﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCenterHeader.ascx.cs"
    Inherits="NJL.Web.Controls.UCenterHeader" %>
<script type="text/javascript">
    function openQQ() {
        var A = window.open("/logintoqq.aspx", "TencentLogin", "width=450,height=320,menubar=0,scrollbars=0, status=1,titlebar=0,toolbar=0,location=1");
    }
    function openRenRen() {
        var A = window.open("/renrencallback.aspx", "RenRenLogin", "width=860,height=420,menubar=0,scrollbars=0, status=1,titlebar=0,toolbar=0,location=1");
    }
    function openSina() {
        var A = window.open("/logintosina.aspx", "SinaLogin", "width=650,height=420,menubar=0,scrollbars=0, status=1,titlebar=0,toolbar=0,location=1");
    }
</script>
<div class="fullscreen" id="top">
    <div class="w1003">
        <!--topinfo-->
        <div class="topInfo">
            <%
                if (Session["userid"] != null)
                {
                    if (Session["usertype"].ToString().Equals("1"))
                    {
            %>
            <span><a href="/AdminEnterprise/Default.aspx" class="bluelink">【商铺管理】</a></span>|<span><a
                href="/Shop/Default.aspx?id=<%=companyId%>" class="bluelink">【我的商铺】</a></span>|
            <%
}
                else if (Session["usertype"].ToString().Equals("2"))
                { 
            %>
            <span><a href="/AdminVisitor/Default.aspx" class="bluelink">【个人主页管理】</a></span>|<span><a
                href="/Visitor/Default.aspx?uid=<%=Session["userid"]%>" class="bluelink">【我的主页】</a></span>|
            <%
}
                else if (Session["usertype"].ToString().Equals("3"))
                { 
            %>
            <span><a href="/AdminVisitor/Default.aspx">【个人主页管理】</a></span>|<span>
                  <a href="/wanjia/<%=Session["userid"]%>-index.html">【我的主页】</a></span>|<span>
                  <a href="/AdminEnterprise/Default.aspx">【商铺管理】</a></span>|<span>
                  <a href="/shangpu/<%=GetCompanyIDByUserID(Session["userid"].ToString())%>-index.html">【我的商铺】</a></span>|
            <%
                }
            }
            %>
            <span><a target="_blank" href="/xcgc/" class="icon_guangc">乡村广场</a></span>|<span>
            <a href="/" class="icon_index">网站首页</a></span>|<span>
            <a target="_blank" rel="nofllow" href="/bzzx/" class="icon_help">帮助中心</a></span>|
            <span class="collect"><a onclick="javascript:fAddFavorites()" rel="nofllow" style="cursor:pointer" class="icon_collect">收藏本站</a></span>
            <script type="text/javascript">
                function fAddFavorites() {
                    var ctrl = (navigator.userAgent.toLowerCase()).indexOf('mac') != -1 ? 'Command/Cmd' : 'Ctrl';
                    if (document.all) {
                        window.external.addFavorite(window.location, document.title);
                    }
                    else if (window.sidebar) {
                        window.sidebar.addPanel(document.title, window.location);
                    }
                    else {
                        alert('添加失败，请用Ctrl+D进行添加');
                    }
                }
            </script>
        </div>
        <!--登陆-->
        <div class="users">
            <%
                if (Session["userid"] != null)
                {
            %>
            <p>
                您好，<strong><%=Session["username"]%></strong>！&nbsp;&nbsp;<a href="/Logout.aspx">[退出]</a></p>
            <%
                }
            else
            { 
            %>
            <p>
                您好，欢迎来农家乐网！请&nbsp;<a rel="nofllow" target="_blank" href="/Login.aspx" class="bluelink">登录</a>&nbsp;&nbsp;
                <span class="qq"><a id="aTopLoginQQ" style="cursor:pointer" class="qqtop bluelink"></a></span>
                <span class="qq"><a id="aTopLoginSina" style="cursor:pointer" class="sinatop bluelink"></a></span>
                <span class="qq"><a id="aTopLoginRenren" style="cursor:pointer" class="renrentop bluelink"></a></span>
                <span><a rel="nofllow" target="_blank" href="/Register.aspx" class="bluelink">免费注册</a></span>
                <span><a rel="nofllow" target="_blank" href="/FindPassword.aspx" class="bluelink">找回密码</a></span>
            </p>
            <%
                }
            %>
            
        </div>
    </div>
</div>
<!--头部-->
<div class="headermanage managecont" id="header">
    <h1 class="f_left">
        <a href="/">
            <img src="<%=WEBSITE_IMAGE_DOMAIN %>/Images/logo/<%=WEBSITE_CODE %>/manage_logo.jpg" alt="<%=WEBSITE_NAME %>" /></a></h1>
</div>
